package com.study.manage.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "sa_vote")
public class Vote extends AbstractEntity {

    private static final long serialVersionUID = 5535409481110171726L;

    public String title;

    public String description;

    @Column(columnDefinition = "tinyint", name = "typee")
    public Integer type = 0;// 0 调查（选项分析）

    @Column(columnDefinition = "tinyint")
    public Integer showResult;// 0 需要做完显示答案| 1 不需要

    public Vote() {}

    public Vote(Long id) {
        this.id = id;
    }
}
